package src.org.jess.serv;

import java.util.HashMap;
import java.util.Map;

import org.eclipse.jetty.websocket.WebSocket.Connection;

public class ConnectionLst {
	private static ConnectionLst connectionLst;
	private Map<String, Connection> lst = new HashMap<String, Connection>();
	private int type = -1;

	public Map<String, Connection> getConnectionLst() {
		return lst;
	}

	public void setConnectionLst(Map<String, Connection> connectionLst) {
		this.lst = connectionLst;
	}
	private ConnectionLst(){}
	  public static ConnectionLst getSingle(){   
		    if(connectionLst == null){
		        synchronized (ConnectionLst.class) {   
		            if(connectionLst == null){
		            	connectionLst = new ConnectionLst();
		        }
		      }
		    }
		    return connectionLst;   
		  }

	public  int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
}
